<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Register extends CI_Controller {

    public function __construct() {
        parent::__construct();
    }
    
    public function index() {
        redirect('register/step_1');
    }
    # 1. INFORMACIÓN PERSONAL
    public function step_1() {
        $this->load->view('template/open_header');
        $this->load->view('register/page-title');
        $this->load->view('template/close_header');
        $this->load->view('register/step/step_1');
        $this->load->view('template/footer');
    }
    # 2. INFORMACIÓN FISCAL
    public function step_2() {
        $this->load->view('template/open_header');
        $this->load->view('register/page-title');
        $this->load->view('template/close_header');
        $this->load->view('register/step/step_2');
        $this->load->view('template/footer');
    }
    #3. INFORMACIÓN ACADÉMICA
    public function step_3() {
        $this->load->view('template/open_header');
        $this->load->view('register/page-title');
        $this->load->view('template/close_header');
        $this->load->view('register/step/step_3');
        $this->load->view('template/footer');
    }
    #4. DATOS FAMILIARES
    public function step_4() {
        $this->load->view('template/open_header');
        $this->load->view('register/page-title');
        $this->load->view('template/close_header');
        $this->load->view('register/step/step_4');
        $this->load->view('template/footer');
    }

    public function cp_full() {
        if (trim($this->input->post('zip_code')) > 1000) {
            $zpc = $this->input->post('zip_code');
            $data['detalle'] = $this->rh_model->get_detalles($zpc);
            $this->load->view('register/lista_estado', $data);
        }
    }

}
